package com.alliky.classify.ui.adapter

import com.alliky.classify.R
import com.alliky.common.entity.vo.ProductVo
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @Author: wxianing
 * @CreateDate: 2022/3/8 21:45
 * @Description: java类作用描述
 */
class ClassifyProductAdapter(data: MutableList<ProductVo>) :
    BaseQuickAdapter<ProductVo, BaseViewHolder>(R.layout.item_classify_product_layout, data) {
    override fun convert(holder: BaseViewHolder, item: ProductVo) {
        holder.setText(R.id.tv_name, item.produceName)
        holder.setImageResource(R.id.iv_image, item.resId)
    }
}